

var ul1=document.querySelector('#ul100')
		var input1=document.querySelector('#input1')
	input1.oninput=function(){
		
		this.value;
		var  sc=document.createElement('script')
		var url="https://suggest.taobao.com/sug?code=utf-8&q=" + this.value +
			"&_ksTS=1547113630313_538&callback=jsonp539&k=1&area=c2c&bucketid=15"
		sc.src=url
		
		document.body.appendChild(sc);
}
		function jsonp539(res){
		
		console.log(res.result)
		
		
		res.result.forEach(function(r){
			var ul1=document.querySelector('#ul100')
			
			ul1.innerHTML+=`
			
			<li id="li1">${r[0]}</li>
			
			`
		})
		
		
	}
	
	var li1=document.querySelector("#li1")
	
	console.log(ul1)
	
	
// 	input1.onblur=function(){
// 			ul1.style.dispaly='none'
// 	}
	
	$("document").click(function(even){
		$("ul1").hide();
	})